package service;

import pojo.Classroom;

import java.util.ArrayList;

/*
    Service层接口
 */
public interface ClassroomService {

    //查询所有班级信息
    public abstract ArrayList<Classroom> findAll();

    //条件查询，根据id获取班级信息
    public abstract Classroom findById(Integer classId);

    public abstract Classroom findByName(String name);

    //条件查询，根据id查询 存在返回true 不存在返回false
    public abstract boolean findByIdReturnBoolean(Integer classId);

    //新增班级信息
    public abstract int insert(Classroom classroom);

    //修改班级信息
    public abstract int update(Classroom classroom);

    /*//删除班级信息
    public abstract int delete(Classroom classroom);*/

}
